
import 'umplugin_platform_interface.dart';

class Umplugin {
  Future<String?> getPlatformVersion() {
    return UmpluginPlatform.instance.getPlatformVersion();
  }

    Future<dynamic> initCommon(String androidAppkey, String iosAppkey, String channel, [String? pushSecret]) {
    return UmpluginPlatform.instance.initCommon(androidAppkey, iosAppkey, channel, pushSecret);
  }

  void onEvent(String event, Map<String,dynamic> properties) {
    return UmpluginPlatform.instance.onEvent(event, properties);
  }

  void onProfileSignIn (String userID) {
    return UmpluginPlatform.instance.onProfileSignIn(userID);
  }

  void onProfileSignOff () {
    return UmpluginPlatform.instance.onProfileSignOff();
  }

  void setPageCollectionModeManual() {
    return UmpluginPlatform.instance.setPageCollectionModeManual();
  }

  void onPageStart(String viewName) {
    return UmpluginPlatform.instance.onPageStart(viewName);
  }

  void onPageEnd(String viewName) {
    return UmpluginPlatform.instance.onPageEnd(viewName);
  }

  void setPageCollectionModeAuto() {
    return UmpluginPlatform.instance.setPageCollectionModeAuto();
  }

  void reportError(String error) {
    return UmpluginPlatform.instance.reportError(error);
  }
}
